<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SOS PLANET - Ayuda al mundo</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div id="wrapper">
<div class="content">
<div id="header">
	<%@ include file = "includes/header.jsp" %>
</div><!-- header -->

<div id="menu">      
	<%@ include file = "includes/menu.html" %>
</div><!-- menu -->
           



<!-- INSERTA TU CODIGO AQUI -->

<div class="cartainscripcion">
<h1>CARTA INSCRIPCI&Oacute;N</h1>
</div>



	<%
	String idact = request.getParameter("idact");
	User u = (User)session.getAttribute("session.userAux");
	IVolunteerProcessor v = new VolunteerProcessor();
	boolean a = v.registerInActivity(u.getId(),idact);
	ActivityStore acti = ActivityStore.getInstance();
	Activity abc = acti.getActivity(idact);
	
	if(a){
	%>
		<h2> Se ha registrado en la actividad con &eacute;xito	</h2>	
		
<div class="nombre">
  Nombre:  <%=u.getName()%>
</div>
<div class="nombre">
  Apellidos:  <%=u.getSurname()%>
</div>		
<div class="nombre">
  Actividad:  <%=abc.getName()%>
</div>
		
	<%
	}else{
		%>
		<h2> Usted no se ha podido registrar en la actividad</h2>
	<%	
	}

	
	%>








    
<div id="footer">
	<%@ include file = "includes/footer.html" %>
</div><!--footer-->

</div><!--content-->
</div><!--wrapper-->
</body>
</html>